<link rel="stylesheet" href="__CDN__/assets/addons/vuemagic/element/element.css">
<link rel="stylesheet" href="__CDN__/assets/addons/vuemagic/common.css">
<script src="__CDN__/assets/addons/vuemagic/vue.js"></script>
<script src="__CDN__/assets/addons/vuemagic/element/element.js"></script>
<script src="__CDN__/assets/addons/vuemagic/Sortable.min.js"></script>
<script src="__CDN__/assets/addons/vuemagic/vuedraggable.js"></script>
<script src="__CDN__/assets/addons/vuemagic/moment.js"></script>
<!--以上js文件不是必须的，您可以将不使用的js删除掉，这里为了考虑所有字段类型情况全部进行了引入-->
<div id="formDetail" v-cloak>
    <div class="form-bodys">
        <el-form :model="baseFrom" ref="baseFrom" :rules="rules" label-width="114px" class="demo-baseFrom">
                   <el-form-item label="{:__('Word')}：" prop="word">
                                  <div class="display-flex">
                            <div class="goods-image-box display-flex" v-if="baseFrom.word">
                                <div class="goods-images" style="margin-right: 0;">
                                    <img :src="'../ajax/icon?suffix='+baseFrom.word.substring(baseFrom.word.indexOf('.') + 1)" class="label-auto" style="border-radius: 4px;">
                                    <div class="del-image-btn" @click="delImg('image',null,'word')">
                                        <img class="label-auto" src="/assets/addons/vuemagic/img/close.png">
                                    </div>
                                </div>
                            </div>
                             <div class="add-img display-flex" @click="addImg('image',null, false,'word','/*')"
                                v-if="!baseFrom.word">
                                <i class="el-icon-plus"></i>
                            </div>
                            <div class="msg-tip">文件描述，如：建议尺寸、大小等</div>
                        </div>



       </el-form-item>
        <el-form-item label="{:__('Name')}：" prop="name">
          <el-input v-model="baseFrom.name" placeholder="请输入{:__('name')}" size="medium"></el-input>
       </el-form-item>
        </el-form>
    </div>
    <div class="page-footer display-flex">
        <div @click="baseSub" class="btn-common footer-btn-1">取消</div>
        <div @click="baseSub('yes','baseFrom')" class="btn-common footer-btn-2">确定</div>
    </div>
</div>


